{% extends "publications/base1.html" %}
{%block headerTitle %}{{ publication.title}}{% endblock %}
{% block content %}
<h3>Abstract</h3>
<ul><strong>{{ publication.abstract | default_if_none:'Abstract no disponible.'}}</strong></ul>
<h3>Details</h3>
<ul>
	 <li><strong>Related authors:</strong>
     {% for author in publication.authors.all %}
     	<a href="{% url 'publications.views.authorDetails' author.id %}"> {{ author.surname }}, {{ author.name }} </a>;
     {% endfor %}
     <li><strong>Source:</strong> {{publication.source | default_if_none:'No disponible.'}}</li>
     <li><strong>Authors:</strong> {{publication.all_authors | default_if_none:'No disponible.'}}</li>
     <li><strong>Times Cited:</strong> {{publication.times_cited | default_if_none:'No disponible.'}}</li>
     <li><strong>Document Type:</strong> {{publication.doc_type | default_if_none:'No disponible.'}}</li>
     <li><strong>Publisher:</strong> {{publication.publisher | default_if_none:'No disponible.'}}</li>
     <li><strong>Publication date:</strong> {{publication.pub_date | default_if_none:'No disponible.'}}</li>
     <li><strong>Publication type:</strong> {{publication.pub_type | default_if_none:'No disponible.'}}</li>
     <li><strong>Source URL:</strong>
     	{% if publication.pub_url %}
     		<a target="__blank" href="{{publication.pub_url}}">{{publication.pub_url | truncatechars:100}}</a>
     	{% else %} 
     		No disponible.
     	{% endif %}
     </li>
     
</ul>

<script>
function goBack()
  {
  window.history.back()
  }
</script>

<input type="button" value="Back" onclick="goBack()">

{% endblock %}